package com.haiyan.demo03_继承的格式;

public class Test {
    public static void main(String[] args) {

        Student stu=new Student();
        stu.setName("张三");
        stu.setAge(19);
        System.out.println(stu.getName()+","+stu.getAge());

        stu.eat();
        stu.drink();
        stu.sleep();

        Dog dog=new Dog();

    }
}
